/**
 * Copyright (c) 2011-2016, James Zhan 詹波 (jfinal@126.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.jfinal.config;

/**
 * JFinalConfig.
 * <p>
 * Config order: configConstant(), configRoute(), configPlugin(), configInterceptor(), configHandler()
 */
public abstract class Smart4jConfig {

	/**
	 * Config constant
	 */
	public abstract void configConstant(Constants me);

	/**
	 * Config route
	 */
	public abstract void configRoute(Routes me);

	/**
	 * Config plugin
	 */
	public abstract void configPlugin(Plugins me);

	/**
	 * Config interceptor applied to all actions.
	 */
//	public abstract void configInterceptor(Interceptors me);

	/**
	 * Config handler
	 */
//	public abstract void configHandler(Handlers me);

	/**
	 * Call back after JFinal start
	 */
	public void afterJFinalStart() {
	};

	/**
	 * Call back before JFinal stop
	 */
	public void beforeJFinalStop() {
	};
}
